package buildcode.shop;

import java.util.ArrayList;
import java.util.List;

import buildcode.database.DataBaseTable;
import buildcode.language.es.type.EsType;
import buildcode.util.CommonUtil;

public class VueListPageEntity extends EsType<VueField, DataBaseTable> {
    private List<VueField> searchFields = new ArrayList<VueField>();
    private List<VueField> tableFields = new ArrayList<VueField>();

    public VueListPageEntity(String name, String packagePath) {
        super(name, packagePath);
    }

    public String getUseName() {
        return CommonUtil.firstLower(getTypeName());
    }

    public List<VueField> getSearchFields() {
        return searchFields;
    }

    public void setSearchFields(List<VueField> searchFields) {
        this.searchFields = searchFields;
    }

    public List<VueField> getTableFields() {
        return tableFields;
    }

    public void setTableFields(List<VueField> tableFields) {
        this.tableFields = tableFields;
    }

    public void addSearchField(VueField field) {
        searchFields.add(field);
    }

    public void addTableField(VueField field) {
        tableFields.add(field);
    }

}
